package com.example.gw_back_end.service.impl;

import com.example.gw_back_end.service.UpLoadService;
import com.example.gw_back_end.utils.MinioUtil;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

@Service
public class UpLoadServiceImpl implements UpLoadService {

    private final MinioUtil minioUtil;
    public UpLoadServiceImpl(MinioUtil minioUtil) {
        this.minioUtil = minioUtil;
    }

    // 文件上传
    @Override
    public String upload(MultipartFile file) {
        return minioUtil.upload(file);
    }
}
